<?php
/**
 * oscshop2 B2C电子商务系统
 *
 * ==========================================================================
 * @link      http://www.oscshop.cn/
 * @copyright Copyright (c) 2015-2017 oscshop.cn. 
 * @license   http://www.oscshop.cn/license.html License
 * ==========================================================================
 *
 * @author    
 *
 * 二维码
 */
 
namespace osc\mobile\controller;
use osc\common\controller\Base;
use think\Db;
use think\captcha\Captcha;


class Qrcode extends Base{	
	//注册
	

      function index()
      {			
			$data=input('get.'); 
			$sharemobile = "";
			if($data){
				if($data['sharemobile'])
				{
					if(is_numeric($data['sharemobile']))
					{
						$sharemobile = $data['sharemobile'];
					}
				}
				$userinfo = Db::name('member')->where('username',$data['sharemobile'])->find();
				$this->assign('userinfo',$userinfo);
			}
			$config = Db::name('config')->where('name','SITE_URL')->select();
			//var_dump($config);
			$this->assign('url',$config[0]['value']);
			$this->assign('sharemobile',$sharemobile);
			return $this->fetch();

      }
    

}
